//package com.yzf.wisecoder.config;
//
//import com.yzf.support.http.WebJWTFilter;
//import com.yzf.support.http.WebLogOutFilter;
//import com.yzf.support.http.WebLoginFilter;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author jianghuiyong
// * @Description sso配置
// * @date 2020/5/8 14:02
// */
//@Configuration
//public class SsoConfig {
//
//    @Bean
//    public FilterRegistrationBean jwtFilterRegistration() {
//        FilterRegistrationBean jwtRegistration = new FilterRegistrationBean(new WebJWTFilter());
//        jwtRegistration.addUrlPatterns("/*");
//        jwtRegistration.setName("JWTFilter");
//        jwtRegistration.setOrder(1);
//        return jwtRegistration;
//    }
//
//
//    @Bean
//    public FilterRegistrationBean logoutFilterRegistration() {
//        FilterRegistrationBean logoutRegistration = new FilterRegistrationBean(new WebLogOutFilter());
//        logoutRegistration.addUrlPatterns("/logout");
//        logoutRegistration.setName("LogoutFilter");
//        logoutRegistration.setOrder(2);
//        return logoutRegistration;
//    }
//
//    @Bean
//    public FilterRegistrationBean loginFilterRegistration() {
//        FilterRegistrationBean loginRegistration = new FilterRegistrationBean(new WebLoginFilter());
//        loginRegistration.addUrlPatterns("/*");
//        loginRegistration.setName("LoginFilter");
//        loginRegistration.setOrder(3);
//        return loginRegistration;
//    }
//}
